import java.util.*;


class Student{
	int id;
	String name;
	String gender;
	
	public String getAddress()
	{
		return address;
	}
	
	public String getGender()
	{
		return gender;
	}
	
	public Student(Integer id,String name,String gender){
		this.name=name;
		this.gender=gender;
		this.id=id;
		
	}
	
	public int getId()
	{
		return id;
	}
	
	@Override
	public String toString() {
		
		return name;
	}
	
}

public class Iterator {
	
	public void linkList(){
		
		LinkedList<Student> stu = new LinkedList<Student>();
		stu.add(new Student(234,"gururaj","male"));	
		stu.add(new Student(543,"mindset","Female"));	
		stu.add(new Student(324,"mindsoft","Female"));	
		stu.add(new Student(114,"feli","male"));	
		
		Iterator it=  (Iterator) stu.iterator();
		System.out.println("");
		
	}
	
	public String randomStr(){
		String str="abcdefghijklmnopqrstuvwxyz";
		StringBuffer b =new StringBuffer();
		for(int i=0;i<5;i++){
	
		int[] d = null;
		d[i]=(int)Math.random()*5;
		b.append(str.charAt(d[i]));
		
		}
		return b.toString();
	}
	
	public static void main(String[] args) {
		String[] s = null;
		Iterator it= new Iterator();
		for(int i=0;i<5;i++){
		s[i]=it.randomStr();
		System.out.println(s[i]);
		}
	}

}
